<?php

namespace wxml\libs;

use yii\base\Model;

class CommonModel extends Model
{

    protected $errMsg="";
    protected $status=0;

    public function getErrMsg(){
        return $this->errMsg;
    }

    public function getStatus(){
        return $this->status;
    }

    public function setError($status=-1,$message=''){
        $this->errMsg=$message;
        $this->status=$status;
    }
}
